package com.program.cloudmanagesystem.login.persistence;
import com.program.cloudmanagesystem.login.domain.User;

import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

@Repository

public interface UserMapper {
    @Select("SELECT * from user where user.Userid = #{Userid}")
    User exist(String Userid);
    @Insert("insert into user(Userid,Password,name) VALUES (#{Userid},#{Password},#{name})")
    void addaccount(@Param("Userid") String Userid,@Param("Password") String Password,@Param("name") String name);
}